<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
</head>
<body>
<div style="text-align:center;">
    <h2>欢迎登录</h2>
    <!-- action配置请求的服务器地址 -->
    <!-- method表示HTTP请求的方式 -->
    <form action="userServlet" method="post">
        <p>
            <label for="userName">用户名:</label>
            <input type="text" id="userName" name="userName" placeholder="请输入用户名"/>
        </p>

        <p>
            <label for="userPassword">密&nbsp;&nbsp;&nbsp;码:</label>
            <input type="password" id="userPassword" name="userPassword" placeholder="请输入密码" />
        </p>

        <p><input type="submit" value="登录" /></p>
    </form>
</div>
</body>
</html>